﻿CREATE PROCEDURE [dbo].[CallCenter_Record_Getlast]
	(
		@CompanyId int,
		@TxtFileName nvarchar(50)
	)
AS
	declare @tempDate datetime
	Set @tempDate=Isnull((Select Top 1 EndDate From CallCenter_Record Where CompanyId=@CompanyId and TxtFileName=@TxtFileName Order by Id DESC),'1900-01-01')
	Select @tempDate
	RETURN
